package JMU2.ti3;

import java.util.Scanner;

/**
 * @author Lenovo
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int n= scanner.nextInt();
            int begin= scanner.nextInt();
            int end= scanner.nextInt();
            StringBuilder str=new StringBuilder();
            for(int i=0;i<n;i++){
                str.append(i);
            }
            System.out.println(str.substring(begin,end));
        }
        scanner.close();
    }
}
